package com.guigu.youxuan.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("goods_comment")
public class GoodsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论 ID，主键，自增
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 评论用户 ID
     */
    private Integer sysUsersId;

    /**
     * 商品id
     */
    private Integer id;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论图片
     */
    private Integer pictureUrl;

    /**
     * 评论时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}
